﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Prerequisites.Models;

namespace Prerequisites.Controllers
{
    public class FormEditorController : Controller
    {
        [HttpGet]
        public ActionResult Index()
        {
            FormModel model = new FormModel();
            return View(model);
        }

        [HttpGet]
        public ActionResult Dialog()
        {
            FormModel model = new FormModel();
            return View(model);
        }

        [HttpPost]
        public ActionResult Form(FormModel model)
        {
            return PartialView(model);
        }
    }
}
